{% extends "admin/index.html" %}
{% load i18n %}

{% block breadcrumbs %}
    <div id="breadcrumbs">
      <a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}
      &rsaquo; Upload
    </div>
{% endblock %}

{% block content %}
    {{ msg|safe }}
	
	{% if error_filename %}
		<a href="/media/{{ error_filename }}" >Download non imported data with errors</a>
	{% endif %}
	
    <h3>Import Tool</h3>
    <dl>
        <dt>Tips</dt>
            <dd> - Look at <a href="https://sites.google.com/a/cristoreyny.org/sword-wiki/preparing-for-a-new-school-year/sampledata.xls?attredirects=0&d=1">sample data</a> first!</dd>
			<dd> - File may be in ods, xls, xlsx, csv formats. csv is not recommended for complex data. </dd>
            <dd> - Leave out data you don't wish to update! Most columns are optional. Blank cells will be ignored.</dd>
			<dd> - Extra columns are fine they will be ignored</dd>
            <dd> - Use exact names of columns as seen in sample data</dd>
            <dd> - Use date, etc formats found in sample data for best results</dd>
			<dd> - A database backup is made on each import. If you break something contact your system administrator.</dd>
    </dl>
    <form action="" method="post" enctype="multipart/form-data">
		{{ form.as_p }}
		<input type="submit" name="import_student" value="Import File"/>
    </form>
{% endblock %}
